package com.geek.factory.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_order")
@ApiModel(value="PurchaseOrder对象", description="")
public class PurchaseOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    private String orderNo;

    private BigDecimal amount;

    private LocalDate orderDate;

    @ApiModelProperty(value = "关联supplier表的supplier_id")
    private Integer supplierId;

    private String status;

    private String responsiblePerson;

    private String responsiblePhone;

    private String createdBy;

    private LocalDateTime createdTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;


}
